package com.easyaop.test.core.pointcut;

import java.util.concurrent.ConcurrentSkipListMap;

/**
 * @author lipan
 * @since 2025-01-21
 */
public abstract class Pointcut {
    protected static final ConcurrentSkipListMap<String, MethodPointcut> CACHE =
            new ConcurrentSkipListMap<>();

    public Pointcut() {
    }

    public void addMethodPointcut(MethodPointcut methodPointcut) {
        CACHE.put(methodPointcut.getSignature(), methodPointcut);
    }
}
